﻿<%@ Page Title="Home Page" Language="vb" MasterPageFile="~/Site.Master" AutoEventWireup="false"
    CodeBehind="Default.aspx.vb" Inherits="Sumof2Numbers._Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <div id="myLabel" class="myLabel">Enter The First Number: </div>
    <asp:TextBox ID="txtNum1" runat="server" CssClass="myTextBox" 
        ToolTip="Enter the First Number Here!"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rqf_txtNum1" runat="server" 
        ControlToValidate="txtNum1" ErrorMessage="Please Enter a Number!" 
        SetFocusOnError="True" Font-Bold="True" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="rev_txtNum1" runat="server" 
        ControlToValidate="txtNum1" ErrorMessage="Please Enter Numbers Only!" 
        Font-Bold="True" Font-Italic="False" Font-Overline="False" 
        ForeColor="Red" ValidationExpression="^\d*" Display="Dynamic"></asp:RegularExpressionValidator>
<br/>
<div id="myLabel" class="myLabel">Enter The Second Number:</div> 
    <asp:TextBox ID="txtNum2" runat="server" CssClass="myTextBox" TabIndex="1" 
        ToolTip="Enter the Second Number Here!"></asp:TextBox>
    <asp:RequiredFieldValidator ID="rqf_txtNum2" runat="server" 
        ControlToValidate="txtNum2" ErrorMessage="Please Enter a Number!" 
        SetFocusOnError="True" Font-Bold="True" ForeColor="Red" Display="Dynamic"></asp:RequiredFieldValidator>
    <asp:RegularExpressionValidator ID="rev_txtNum2" runat="server" 
        ControlToValidate="txtNum2" ErrorMessage="Please Enter Numbers Only!" 
        Font-Bold="True" Font-Italic="False" ForeColor="Red" 
        ValidationExpression="^\d*" Display="Dynamic"></asp:RegularExpressionValidator>
<br/>
<asp:Button ID="btnGetSum" runat="server" Text="Calculate Sum!" 
        CssClass="myButton" TabIndex="2" />
    <br />
    <br/>
    <asp:Label ID="lblResult" runat="server" Font-Bold="True" Font-Size="Medium" 
        ForeColor="#996600" Font-Italic="True"></asp:Label>
    
    <br />
    
</asp:Content>
